function isMobileDevice() {
	if (/Android|iPhone|iPad|iPod|BlackBerry|BB|IEMobile|Windows Phone|Opera Mini/i.test(navigator.userAgent)) {
		return true;
	}
	return false;
}

function isLandscapeMode() {
    return (window.orientation === 90 || window.orientation === -90);
}